package com.yun.service;

import com.yun.mapper.MsgMapper;
import com.yun.pojo.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MsgServiceImpl implements MsgService{
    @Autowired
    private MsgMapper msgMapper;


    @Override
    public String SaveMsg(Msg msg) {
        int flag = msgMapper.insert(msg);
        if (flag > 0) {
            return "保存到数据库成功!!!";
        }
        return "保存到数据库失败!!!";
    }
}
